home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / adduser / RCS / common.h,v < prev    next >
Encoding:
Text File  |  1991-06-04  |  3.0 KB  |  125 lines

  1. head     1.2;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.2
  10. date     91.06.04.16.52.10;  author kupfer;  state Exp;
  11. branches ;
  12. next     1.1;
  13.  
  14. 1.1
  15. date     91.06.03.17.04.53;  author kupfer;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @Shared declarations for adduser and deleteuser.
  22. @
  23.  
  24.  
  25. 1.2
  26. log
  27. @Add SecurityCheck.
  28. @
  29. text
  30. @/*
  31.  * common.h --
  32.  *
  33.  *    Shared declarations for adduser and deleteuser.
  34.  *
  35.  * Copyright 1991 Regents of the University of California
  36.  * Permission to use, copy, modify, and distribute this
  37.  * software and its documentation for any purpose and without
  38.  * fee is hereby granted, provided that this copyright
  39.  * notice appears in all copies.  The University of California
  40.  * makes no representations about the suitability of this
  41.  * software for any purpose.  It is provided "as is" without
  42.  * express or implied warranty.
  43.  *
  44.  * $Header: /sprite/src/admin/adduser/RCS/common.h,v 1.1 91/06/03 17:04:53 kupfer Exp Locker: kupfer $ SPRITE (Berkeley)
  45.  */
  46.  
  47. #ifndef _COMMON
  48. #define _COMMON
  49.  
  50. #ifdef __STDC__
  51. #define _HAS_PROTOTYPES
  52. #define _HAS_VOIDPTR
  53. #endif
  54.  
  55. #include <cfuncproto.h>
  56. #include <pwd.h>
  57.  
  58. /* 
  59.  * Don't use const yet; Sprite isn't really converted to use it yet.
  60.  */
  61. #define CONST 
  62.  
  63. #define BUFFER_SIZE         0x100
  64.  
  65. #ifdef TEST
  66. #define PASSWD_FILE    "test/passwd"
  67. #define PASSWD_BAK    "test/passwd.addeluser.BAK"
  68. #define PTMP_FILE    "test/ptmp"
  69. #define    MASTER_PASSWD_FILE    "test/master.passwd"
  70. #define MASTER_BAK    "test/master.addeluser.BAK"
  71. #define ALIASES        "test/aliases"
  72. #define ALIASES_TMP    "test/aliases.addeluser.tmp"
  73. #define ALIASES_BAK    "test/aliases.addeluser.BAK"
  74.  
  75. #else /* !TEST */
  76. #define PASSWD_FILE    _PATH_PASSWD
  77. #define PASSWD_BAK    "/etc/passwd.BAK"
  78. #define PTMP_FILE    _PATH_PTMP
  79. #define    MASTER_PASSWD_FILE    _PATH_MASTERPASSWD
  80. #define MASTER_BAK    "/etc/master.addeluser.BAK"
  81. #define ALIASES        "/sprite/lib/sendmail/aliases"
  82. #define ALIASES_TMP    "/sprite/lib/sendmail/aliases.addeluser.tmp"
  83. #define ALIASES_BAK    "/sprite/lib/sendmail/aliases.addeluser.BAK"
  84. #endif /* !TEST */
  85.  
  86. /* 
  87.  * This is the directory where everyone's home directory is 
  88.  * registered.  However, instead of actually putting the home directory 
  89.  * here, we put the home directory on a separate partition and put a 
  90.  * symbolic link here.
  91.  */
  92. #ifdef TEST
  93. #define USER_DIR    "test"
  94. #else
  95. #define USER_DIR    "/users"
  96. #endif
  97.  
  98. extern int checkNumber _ARGS_((char *buf));
  99. extern void getPasswd _ARGS_((char *p));
  100. extern void getNumber _ARGS_((CONST char *prompt, char *buf));
  101. extern char *getShell _ARGS_((void));
  102. extern void getString _ARGS_((CONST char *forbid, CONST char *prompt,
  103.                   char *buf));
  104. extern int makedb _ARGS_((char *file));
  105. extern int raw_getchar _ARGS_((void));
  106. extern int rcsCheckIn _ARGS_((char *file, char *logMsg));
  107. extern int rcsCheckOut _ARGS_((char *file));
  108. extern void SecurityCheck _ARGS_((void));
  109. extern int yes _ARGS_((char *prompt));
  110.  
  111. #endif /* _COMMON */
  112. @
  113.  
  114.  
  115. 1.1
  116. log
  117. @Initial revision
  118. @
  119. text
  120. @d15 1
  121. a15 1
  122.  * $Header: /sprite/lib/forms/RCS/proto.h,v 1.7 91/02/09 13:24:52 ouster Exp $ SPRITE (Berkeley)
  123. d79 1
  124. @
  125.